package com.yang.contentaudit.dto;

import com.yang.contentaudit.constants.AuditResult;
import lombok.Builder;
import lombok.Data;

/**
 * @author: Billyang
 * @date: 2024/9/30 17:11
 */
@Data
@Builder
public class AuditResponse {
    private Integer code;
    private String message;

    public static AuditResponse success() {
        return new AuditResponse(AuditResult.SUCCESS, "success");
    }

    public static AuditResponse fail(String msg) {
        return new AuditResponse(AuditResult.FAIL, msg);
    }

    public static AuditResponse review(String msg) {
        return new AuditResponse(AuditResult.REVIEW, msg);
    }
}
